import requests
video = [{
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108801569367880_video/123617272108801569367880_0/23617272108746174686603_preview.mp4',
           'names': '小林家的龙女仆第二季第01集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108796884538241_video/123617272108796884538241_0/23617272108746067158732_preview.mp4',
           'names': '小林家的龙女仆第二季第02集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108795715361701_video/123617272108795715361701_0/23617272108746061005412_preview.mp4',
           'names': '小林家的龙女仆第二季第03集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108796750831408_video/123617272108796750831408_0/23617272108746086564477_preview.mp4',
           'names': '小林家的龙女仆第二季第04集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108794316138069_video/123617272108794316138069_0/23617272108746035567959_preview.mp4',
           'names': '小林家的龙女仆第二季第05集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108792225428604_video/123617272108792225428604_0/23617272108745933743254_preview.mp4',
           'names': '小林家的龙女仆第二季第06集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108825593095059_video/123617272108825593095059_0/23617272108796071682324_preview.mp4',
           'names': '小林家的龙女仆第二季第07集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108828895560141_video/123617272108828895560141_0/23617272108797721666416_preview.mp4',
           'names': '小林家的龙女仆第二季第08集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2361727/123617272108913519653654_video/123617272108913519653654_0/23617272108893223951799_preview.mp4',
           'names': '小林家的龙女仆第二季第09集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://v2-mg04.kwaicdn.com/bs2/video_onVideo/media/2392639/123926392225112712277734_video/123926392225112712277734_0/23926392225096647593956_preview.mp4',
           'names': '小林家的龙女仆第二季第10集'}, {
           'video_list': 'https://play.lcdck.com/vip.php?url=https://1251316161.vod2.myqcloud.com/29fe1275vodbj1251316161/e0a8bf093701925924344169672/V4eiyp3CvecA.mp4',
           'names': '小林家的龙女仆第二季第11集'}]

for i in video:
    video_url = i['video_list'].replace('https://play.lcdck.com/vip.php?url=', '')
    print(video_url)
    video_name = i['names']
    response_video = requests.get(video_url).content
    with open('D:/video/' + video_name + '.mp4', 'wb') as f:
        f.write(response_video)
    print(video_name + " 下载完成")


# for i in range(len(video)):
#     # v = video['video_list'][i]
#     # print(v)
#     print(video[i]['video_list'])